package com.suoluo.zenadmin.vo.trip;

import java.util.ArrayList;
import java.util.List;

/**
 * @author jingruiguyue
 *
 */
public class TripDailyVO {

	/**
	 * 每天行程Id
	 */
	private int dailyId;
	/**
	 * 每天行程编号
	 */
	private int dailyNo;
	/**
	 * 行程id 
	 */
	private int tripId;
	/**
	 * 每天行程描述
	 */
	private String content;
	/**
	 * 早餐
	 */
	private String breakfast;
	/**
	 * 午餐
	 */
	private String lunch;
	/**
	 * 晚餐
	 */
	private String supper;
	/**
	 * 住宿地点
	 */
	private String hotel;

	
	private List<TripDailyLocationsVO> tripDailyLocations;
	
	/**
	 * 每天行程所经过的目的地
	 */
	private List<TripdestVO> tripdests;
	
	
	/**
	 * 行程明细页面显示，统计该天所有地点之间的距离
	 */
	private double distance;
	
	/**
	 * 行程明细页面显示，统计当天旅行所要消耗的时间
	 */
	private int costTime;

	public int getDailyId() {
		return dailyId;
	}
	public void setDailyId(int dailyId) {
		this.dailyId = dailyId;
	}
	public int getDailyNo() {
		return dailyNo;
	}
	public void setDailyNo(int dailyNo) {
		this.dailyNo = dailyNo;
	}
	public int getTripId() {
		return tripId;
	}
	public void setTripId(int tripId) {
		this.tripId = tripId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getBreakfast() {
		return breakfast;
	}
	public void setBreakfast(String breakfast) {
		this.breakfast = breakfast;
	}
	public String getLunch() {
		return lunch;
	}
	public void setLunch(String lunch) {
		this.lunch = lunch;
	}
	public String getSupper() {
		return supper;
	}
	public void setSupper(String supper) {
		this.supper = supper;
	}
	public String getHotel() {
		return hotel;
	}
	public void setHotel(String hotel) {
		this.hotel = hotel;
	}
	public List<TripDailyLocationsVO> getTripDailyLocations() {
		return tripDailyLocations;
	}
	public void setTripDailyLocations(List<TripDailyLocationsVO> tripDailyLocations) {
		this.tripDailyLocations = tripDailyLocations;
	}
	
	public void addTripLocation(TripDailyLocationsVO loc){
		if (tripDailyLocations == null){
			tripDailyLocations = new ArrayList<TripDailyLocationsVO>();
		}
		tripDailyLocations.add(loc);
	}
	
	public void addTripdest(TripdestVO tripdest){
		if (tripdest == null){
			return;
		}
		if (tripdests == null){
			tripdests = new ArrayList<TripdestVO>();
		}
		if (tripdests.contains(tripdest)){
			return;
		}
		tripdests.add(tripdest);
	}
	public List<TripdestVO> getTripdests() {
		return tripdests;
	}
	public void setTripdests(List<TripdestVO> tripdests) {
		this.tripdests = tripdests;
	}
	public double getDistance() {
		return distance;
	}
	public void setDistance(double distance) {
		this.distance = distance;
	}
	public int getCostTime() {
		return costTime;
	}
	public void setCostTime(int costTime) {
		this.costTime = costTime;
	}
}

